package com.game.client.service.logichandler;


import com.game.client.service.handler.GameClientChannelContext;
import com.game.netty.game.message.business.BuyArenaChallengeTimesMsgResponse;
import com.game.netty.game.message.business.EnterGameMsgResponse;
import com.game.netty.game.messagedispatcher.GameMessageHandler;
import com.game.netty.game.messagedispatcher.GameMessageMapping;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@GameMessageHandler
public class EnterGameHandler {
    private Logger logger = LoggerFactory.getLogger(EnterGameHandler.class);

    @GameMessageMapping(EnterGameMsgResponse.class)
    public void enterGameResponse(EnterGameMsgResponse response, GameClientChannelContext ctx) {
        logger.info("进入游戏成功：{}",response.getBodyObj().getNickname());
    }

    @GameMessageMapping(BuyArenaChallengeTimesMsgResponse.class)
    public void buyArenaChallengeTimes(BuyArenaChallengeTimesMsgResponse response, GameClientChannelContext ctx) {
        logger.debug("购买竞技场挑战次数成功");
    }
}
